package com.ocean.redflagtest.mvvm.models.entity

import android.arch.persistence.room.Entity
import android.arch.persistence.room.PrimaryKey

/**
 * Created by ocean on 2018/8/2
 * Author :  ocean
 * Email  :  348686686@qq.com
 */

@Entity(tableName = "red_flag")
class OriginalModel {

    /**
     * name : 时事学习
     * url : /pages/common/alist?cst=999&col=1&api=getc
     * icon : https://s.jshqpp.com/icon/home_red.png
     * sectionid : 0
     * x : 20
     * y : 0
     * size : 120
     * color : #ff0000
     * zindex : 0
     * memo :
     * colid : 991
     */

    @PrimaryKey
    var id: Int? = null
    var name: String? = null
    var url: String? = null
    var icon: String? = null
    var sectionid: String? = null
    var x: String? = null
    var y: String? = null
    var size: String? = null
    var color: String? = null
    var zindex: String? = null
    var memo: String? = null
    var colid: String? = null

    override fun toString(): String {
        return "NetModel{" +
                "name='" + name + '\''.toString() +
                ", url='" + url + '\''.toString() +
                ", icon='" + icon + '\''.toString() +
                ", sectionid='" + sectionid + '\''.toString() +
                ", x='" + x + '\''.toString() +
                ", y='" + y + '\''.toString() +
                ", size='" + size + '\''.toString() +
                ", color='" + color + '\''.toString() +
                ", zindex='" + zindex + '\''.toString() +
                ", memo='" + memo + '\''.toString() +
                ", colid='" + colid + '\''.toString() +
                '}'.toString()
    }

}
